/* ------------------------------------------------------------------------
	Author: SlopeTracker (http://www.pluginexpert.com)
	Version: 1.0
------------------------------------------------------------------------- */
var stYoutubeToolboxCustom = {
    filter: function(filter, action, functionCallback) {
        var data_post = new Array();
        data_post['filter'] = jQuery(filter).val();
        data_post['userFilter'] = jQuery('#stUserFilter').val();
        stYoutubeToolbox.loadPage(action, data_post, false, functionCallback)
    },
    filter1: function(filter, action, functionCallback) {
        var data_post = new Array();
        data_post['userFilter'] = jQuery(filter).val();
        data_post['filter'] = jQuery('#stFilter').val();
        stYoutubeToolbox.loadPage(action, data_post, false, functionCallback)
    },
    
    stRedirect: function(href) {
        window.location = href;

    },
    drawVisualization: function (data) {
        // Create and draw the visualization.
//        alert(data);
        if(data){
            new google.visualization.LineChart(document.getElementById('chartDiv')).
            draw(data, {
                curveType: "function",
                width: 850,
                height: 400,
                pointSize: 6,
                fontSize: 12
            }
            );
        }else{
            jQuery('#chartDiv').html('<div class="chartNoData">NO DATA</div>');
        }
    }
};